package ooExercise.ooday03;

public class Fish extends Animal implements Swim{
    Fish(String name,int age,String cplor){
        super(name,age,cplor);
    }
    void eat(){
        System.out.println("一只名叫:" + name + "的小鱼," + color + "颜色的，今年" + age + "岁l,现在正在虾米...");
    }
    public void swim(){
        System.out.println("一只"+age+"岁的小鱼,它的名字叫"+name+",还是"+color+"颜色的，正在深海里随心所欲的游泳...");
    }
}
